CArchive::operator <<

friend CArchive& operator << (CArchive& ar, const CObject* pOb);
  throw (CArchiveException, CFileException);
CArchive& operator <<(BYTE by);
  throw (CArchiveException, CFileException);
CArchive& operator <<(WORD w);
  throw (CArchiveException, CFileException);
CArchive& operator <<(int i);
  throw (CArchiveException, CFileException);
CArchive& operator <<(LONG l);
  throw (CArchiveException, CFileException);
CArchive& operator <<(DWORD dw);
  throw (CArchiveException, CFileException);
CArchive& operator <<(float f);
  throw (CArchiveException, CFileException);
CArchive& operator <<(double d);
  throw (CArchiveException, CFileException);

返回值:
CArchive参考,它可以在一行上使用多个提取运算符。

说明:
把确切的对象或主要类型存储到归档文件中。
如果在类的实现中使用IMPLEMENT_SERIAL宏,然后重载CObject的插入运算符调用被保护的WriteObject。此函数反过来调用类的Serialize函数。

示例:
long l;
int i;
extern CArchive ar;
if (ar.IsStoring( )) ar<<l<<i;

请参阅:CArchive::WriteObject, CObject::Serialize